package mtn.bowen.yan.server.service;

import mtn.bowen.yan.server.model.VarietyDishes;
import mtn.bowen.yan.server.model.WeekRecipe;

import java.util.List;

/**
 * @author <a href=mailto:yanbowen90@foxmail.com> bowen.yan </a>
 * @version 1.0
 * @description: TODO
 * @date 2021-10-30 11:50 AM
 */
public interface WeekRecipeService {

    /**
     * 根据星期、类型、种类查询食谱
     *
     * @param varietyDishes 星期、类型、种类
     * @return 查询食谱结果集合
     */
    List<WeekRecipe> selectByWeekAndTypeAndKind(VarietyDishes varietyDishes);

    /**
     * 根据星期、类型、种类删除食谱
     *
     * @param varietyDishes 星期、类型、种类
     * @return 执行删除数据条数
     */
    int deleteByVarietyDishes(VarietyDishes varietyDishes);

    /**
     * 根据星期、类型、种类删除食谱
     *
     * @param week 星期
     * @param type 类型
     * @param kind 种类
     * @return 执行删除数据条数
     */
    int deleteByWeekAndTypeAndKind(int week, int type, int kind);

    int insertWeekRecipe(WeekRecipe weekRecipe);

    List<WeekRecipe> selectByWeekAndType(int week, int type);
}
